Token Liquidity
Queries the total amount of liquidity available for the specified token.
query Pool($token: String!) {
pool {
token_liquidity(token: $token) {
token
total_liquidity
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query Pool($token: String!) {\n pool {\n token_liquidity(token: $token) {\n token\n total_liquidity\n }\n }\n}","variables":{"token":"usdt"}}'
Arguments
- token: The token Id of the token to get the liquidity amount for.
Return Fields
Field | Type | Description |
---|---|---|
token | String | The token symbol or identifier. |
total_liquidity | Float | The total liquidity of the token. |